package com.nzx.common.enums;

/**
 * 接口返回状态码枚举类型
 * */
public enum ResultStatusCodeEnum {


    SUCCESS(200,"操作成功"),

    PARAM_ERROR(501,"参数错误"),

    SERVER_TIMEOUT(502,"服务响应超时，请稍后再试"),

    FAIL(400,"操作失败");

    private Integer code;

    private String value;

    ResultStatusCodeEnum(Integer code,String value){
        this.code = code;
        this.value = value;
    }

    public Integer getCode(){

        return this.code;
    }

    public String value(){

        return this.value;
    }
}
